import 'package:school_assistant/generated/json/base/json_convert_content.dart';
import 'package:school_assistant/data/uer_info_entity.dart';

UerInfoEntity $UerInfoEntityFromJson(Map<String, dynamic> json) {
	final UerInfoEntity uerInfoEntity = UerInfoEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		uerInfoEntity.id = id;
	}
	final String? username = jsonConvert.convert<String>(json['username']);
	if (username != null) {
		uerInfoEntity.username = username;
	}
	final String? password = jsonConvert.convert<String>(json['password']);
	if (password != null) {
		uerInfoEntity.password = password;
	}
	final int? sex = jsonConvert.convert<int>(json['sex']);
	if (sex != null) {
		uerInfoEntity.sex = sex;
	}
	final int? age = jsonConvert.convert<int>(json['age']);
	if (age != null) {
		uerInfoEntity.age = age;
	}
	final String? mobile = jsonConvert.convert<String>(json['mobile']);
	if (mobile != null) {
		uerInfoEntity.mobile = mobile;
	}
	final String? email = jsonConvert.convert<String>(json['email']);
	if (email != null) {
		uerInfoEntity.email = email;
	}
	final String? profile = jsonConvert.convert<String>(json['profile']);
	if (profile != null) {
		uerInfoEntity.profile = profile;
	}
	final String? extra = jsonConvert.convert<String>(json['extra']);
	if (extra != null) {
		uerInfoEntity.extra = extra;
	}
	return uerInfoEntity;
}

Map<String, dynamic> $UerInfoEntityToJson(UerInfoEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['username'] = entity.username;
	data['password'] = entity.password;
	data['sex'] = entity.sex;
	data['age'] = entity.age;
	data['mobile'] = entity.mobile;
	data['email'] = entity.email;
	data['profile'] = entity.profile;
	data['extra'] = entity.extra;
	return data;
}